﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;

namespace TwainDotNet.TwainNative
{
    //typedef struct {
    //TW_UINT16 ItemType;
    //TW_UINT32 MinValue;
    //TW_UINT32 MaxValue;
    //TW_UINT32 StepSize;
    //TW_UINT32 DefaultValue;
    //TW_UINT32 CurrentValue;
    //} TW_RANGE, FAR * pTW_RANGE;
    public class CapabilityRangeValue
    {
        public TwainType ItemType { get; set; }
        public uint MinValue { get; set; }
        public uint MaxValue { get; set; }
        public uint StepSize { get; set; }
        public uint DefaultValue { get; set; }
        public uint CurrentValue { get; set; }
        public static int Size
        {
            get
            {
                return (Marshal.SizeOf(typeof(ushort)) + Marshal.SizeOf(typeof(uint)) * 5);
            }
        }
    }
}
